﻿<#*********************************************************************

 This script will set the powerpoint app service to not run in sandbox.
 This fixes problem with PowerPoint apps not rendering
 
**********************************************************************#>

if ((Get-PSSnapin -Name  Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null) 
{ 
    Add-PsSnapin  Microsoft.SharePoint.PowerShell 
}

Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedViewing $false -EnableSandboxedEditing $false
iisreset
